package tinybase.rm;

import tinybase.basic.RC;
import tinybase.pf.*;;


//RM_FileHandle: RM File interface
//This class is used to manipulate the records in 
//an open RM component file
public class RM_FileHandle {


	PF_FileHandle pfFileHandle;
	RM_FileHdr fileHdr;             	// file header
	boolean bHdrChanged;               		// dirty flag for file hdr

	public boolean isbHdrChanged() {
		return bHdrChanged;
	}

	public void setbHdrChanged(boolean bHdrChanged) {
		this.bHdrChanged = bHdrChanged;
	}

	//Constructor. Initialize instance variables
	RM_FileHandle(){

	}

	public RC getRec(RID rid, RM_Record rec){
		return RC.RM_SUCCESS;

	}

	public RC insertRec(byte[] pData, RID rid){
		return RC.RM_SUCCESS;
	}

	public RC deleteRec(RID rid){
		return RC.RM_SUCCESS;
	}

	public RC updateRec(RM_Record rec){
		return RC.RM_SUCCESS;
	}

	public  RC forcePages(int pageNum){
		return RC.RM_SUCCESS;
	}
	
	// Bitmap Manipulation
	private int getBitmap(byte[] map, int idx){
		return (0);
	}
	
	private void setBitmap(byte[] map, int idx){
		
	}
	
	private void clrBitmap (byte[] map, int idx){
		
	}


}
